package com.userfactssample.client.client.framework;

public class UMLink extends UMLabel {

	public UMLink(String targetLink, String style, String displayText) {
		super(buildHref(targetLink, style,displayText));
	}
	
	public static String buildHref(String url, String style, String text){
		StringBuilder lableString = new StringBuilder();
		lableString.append( "<a href=\"" + url +"\" ");
		lableString.append( "target=\"_blank\" ");
		lableString.append( "style=\"" + style +"\">");
		lableString.append( text );
		lableString.append( "</a>" );
		return lableString.toString();
	}

}
